


class Loptop:
    model = ""
    waitime = 0
    collor = ""
    weight = ""
    cpu = ""
    RAMsize = 0
    hdesk = 0
    def __init__(self, model, waitime, collor, weight, cpu, RAMsize, hdesk):
        self.model = model
        self.waitime = waitime
        self.collor = collor
        self.weight = weight
        self.cpu = cpu
        self.RAMsize = RAMsize
        self.hdesk = hdesk
    def playgame(self,gamename):
        print(self.model,"上正在运行一款名为",gamename,"的游戏")
    def work(self):
        print(self.model,"正在被用于办公")













